package cc.comac.mom.api;

import java.util.List;

import cc.comac.mom.bean.EquipMaintainPlanBean;
import cc.comac.mom.bean.EquipMaintainWorkOrderBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cc.comac.mom.bean.EquipMaintainWorkOrder;
import cc.comac.mom.util.ResultBean;
import io.swagger.annotations.ApiOperation;

@FeignClient(name = "mom-equipment-mgmt-srv")
public interface EquipMaintainWorkOrderService {

	@ApiOperation("逻辑删除对应数据")
	@RequestMapping(value = "/p/cs/EquipMaintainWorkOrderService/batchDeleteMaintainWorkOrder", method = RequestMethod.POST)
	public ResultBean batchDeleteMaintainWorkOrder(@RequestBody List<EquipMaintainWorkOrder> list);

	
	@ApiOperation("派工 调整日期，调整执行人")
	@RequestMapping(value = "/p/cs/EquipMaintainWorkOrderService/updateBySomeField", method = RequestMethod.POST)
	public ResultBean updateBySomeField(@RequestBody EquipMaintainWorkOrder equipMaintainWorkOrder);

	@ApiOperation("查询对应保养工单数据通过条件")
	@RequestMapping(value = "/p/cs/EquipMaintainWorkOrderService/selectBySomeField", method = RequestMethod.POST)
	public ResultBean selectBySomeField(@RequestBody EquipMaintainWorkOrderBean equipMaintainWorkOrder);

}
